import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/account/login',
    method: 'post',
    data
  })
}

// 内部展示页配置-详情
export function interiorShowConfigDetails() {
  return request({
    url: `/rest/show/config/getInfo`,
    method: 'post'
  })
}

// 养老机构列表
export function provideoldOrganizationList(data) {
  return request({
    url: `/old/institution/listPage`,
    method: 'post',
    data
  })
}

// 每日菜品餐次类型
export function dishesMealNumType() {
  return request({
    url: `work/config/everyday/mealType/config`,
    method: 'post'
  })
}

// 每周菜品列表
export function weeklyDishesList(data) {
  return request({
    url: `rest/everyday/dishes/listAll`,
    method: 'post',
    data
  })
}

// 日常娱乐活动列表
export function dailyActivitiesList(data) {
  return request({
    url: `rest/daily/activity/pageInfo`,
    method: 'post',
    data
  })
}

// 老年活动列表
export function agednessActivityList(data) {
  return request({
    url: `rest/old/activity/pageInfo`,
    method: 'post',
    data
  })
}

// 值班班次列表
export function dutyClassesList(data) {
  return request({
    url: `duty/shift/listPage`,
    method: 'post',
    data
  })
}
// 值班日历列表
export function dutyCalendarList(data) {
  return request({
    url: `duty/info/listAll`,
    method: 'post',
    data
  })
}

// 建筑查询条件 树结构
export function buildingTree(data) {
  return request({
    url: `/duty/info/selectAll`,
    method: 'post',
    data
  })
}
